import { Caller } from "../../../com/gengine/core/call/Caller";
//class NetDispatcher
// did
export class NetDispatcher {
  public static addCmdListener(arg1: number, arg2: Function): void {
    NetDispatcher.command.addCall(arg1, arg2);
    return;
  }

  public static removeCmdListener(arg1: number, arg2: Function): void {
    NetDispatcher.command.removeCall(arg1, arg2);
    return;
  }

  public static dispatchCmd(arg1: number, arg2: number) {
    return NetDispatcher.command.call(arg1, arg2);
  }

  public static hasCmdListener(arg1: number) {
    return NetDispatcher.command.hasCall(arg1);
  }

  private static /* var */ command = new Caller();
}
